// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Nodes;

public sealed partial class MemoryStats
{
	/// <summary>
	/// <para>If the amount of physical memory has been overridden using the `es`.`total_memory_bytes` system property then this reports the overridden value in bytes.<br/>Otherwise it reports the same value as `total_in_bytes`.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("adjusted_total_in_bytes")]
	public long? AdjustedTotalInBytes { get; init; }

	/// <summary>
	/// <para>Amount of free physical memory in bytes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("free_in_bytes")]
	public long? FreeInBytes { get; init; }
	[JsonInclude, JsonPropertyName("resident")]
	public string? Resident { get; init; }
	[JsonInclude, JsonPropertyName("resident_in_bytes")]
	public long? ResidentInBytes { get; init; }
	[JsonInclude, JsonPropertyName("share")]
	public string? Share { get; init; }
	[JsonInclude, JsonPropertyName("share_in_bytes")]
	public long? ShareInBytes { get; init; }

	/// <summary>
	/// <para>Total amount of physical memory in bytes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("total_in_bytes")]
	public long? TotalInBytes { get; init; }
	[JsonInclude, JsonPropertyName("total_virtual")]
	public string? TotalVirtual { get; init; }
	[JsonInclude, JsonPropertyName("total_virtual_in_bytes")]
	public long? TotalVirtualInBytes { get; init; }

	/// <summary>
	/// <para>Amount of used physical memory in bytes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("used_in_bytes")]
	public long? UsedInBytes { get; init; }
}